__author__ = 'jiangjun'
__date__ = '2018/4/16 下午5:16'

from enum import Enum, unique

"""
钉钉接口列表
"""


@unique
class ApiList(Enum):
    # 获取Access_Token
    ACCESS_TOKEN = 'https://oapi.dingtalk.com/gettoken?corpid={corp_id}&corpsecret={corp_secret}'
    # 获取jsapi_ticket
    JSAPI_TICKET = 'https://oapi.dingtalk.com/get_jsapi_ticket?access_token={access_token}'
    # 通过code获取身份userid
    GET_USER_INFO = 'https://oapi.dingtalk.com/user/getuserinfo?access_token={access_token}&code={auth_code}'
    # 通过userid获取用户信息
    GET_USER_DETAIL = 'https://oapi.dingtalk.com/user/get?access_token={access_token}&userid={user_id}'
